import request from '@/utils/request'

// 查询物料资产列表
export function listMonMstr(query) {
  return request({
    url: '/money/monMstr/list',
    method: 'get',
    params: query
  })
}

// 查询物料资产详细
export function getMonMstr(monWldm) {
  return request({
    url: '/money/monMstr/' + monWldm,
    method: 'get'
  })
}

// 新增物料资产
export function addMonMstr(data) {
  return request({
    url: '/money/monMstr',
    method: 'post',
    data: data
  })
}

// 修改物料资产
export function updateMonMstr(data) {
  return request({
    url: '/money/monMstr',
    method: 'put',
    data: data
  })
}

// 新增或修改物料资产
export function insertOrUpdateMonMstr(data) {
  return request({
    url: '/money/monMstr/insertOrUpdateMonMstr',
    method: 'put',
    data: data
  })
}

// 删除物料资产
export function delMonMstr(monId) {
  return request({
    url: '/money/monMstr/' + monId,
    method: 'delete'
  })
}

// 导出物料资产
export function exportMonMstr(query) {
  return request({
    url: '/money/monMstr/export',
    method: 'get',
    params: query
  })
}
export function exportMonExample() {
  return request({
    url: '/money/monMstr/exportMon',
    method: 'get'
  })
}


// 物料资产历史单价记录表
export function historyMonMstrReport(query) {
  return request({
    url: '/money/monMstr/historyMonMstrReport',
    method: 'get',
    params: query
  })
}
